package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.dto.ReceiptListBatchDTO;
import com.itheima.wms.dto.ReceiptListDTO;
import com.itheima.wms.entity.ReceiptEntity;
import com.itheima.wms.entity.ReceiptListEntity;
import com.itheima.wms.vo.ReceiptListDetailVO;
import com.itheima.wms.vo.ReceiptListSumVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口
 * 入库清单
 * </p>
 */
public interface ReceiptListService extends ICrudService<ReceiptListEntity> {

    Boolean saveBatchByGoodsIds(ReceiptListBatchDTO receiptListBatchDTO);

    void buildLocationPlanByReceipt(Long id);

    IPage<ReceiptListDetailVO> pageDetail(Page<ReceiptListDetailVO> page, Map data);

    ReceiptListSumVO getSumByMasterId(Long masterId);

    boolean updateById(ReceiptListDTO dto);

    List<Long> goodsIds(Map data);
}
